app.controller('read',function($http,$stateParams,$scope){
	console.log($stateParams)
	$scope.param=$stateParams
	$http.get('/api/v2/articles/'+$stateParams.id+'/comments',{
		params:{
			"format":"threaded",
			"offset":0,
			"limit":500
		}
	}).then(function(res){
		console.log(res.data)
		$scope.reads=res.data
		$scope.len = $scope.reads.length
	})
})